import { Rule, RuleType } from '@midwayjs/validate';

export class updateDto {
  @Rule(RuleType.number().required())
  id: number;
}
export class pageDto {
  @Rule(RuleType.number().required())
  pageNo: number;
  @Rule(RuleType.number().required())
  pageSize: number;
}
export class limitDto {
  @Rule(RuleType.number().required())
  offset: number;
  @Rule(RuleType.number().required())
  limit: number;
}
